
package at.fhj.ase.clientarch.common;

import java.io.Serializable;
import java.sql.Timestamp;

public class HardwareData implements Serializable {
  private static final long serialVersionUID = 5931124313224206056L;

  private final double cpu;
  private final double ram;
  private final Timestamp timestamp;

  public HardwareData(final double cpu, final double ram, final Timestamp timestamp) {
    this.cpu = cpu;
    this.ram = ram;
    this.timestamp = timestamp;
  }

  public double getCpu() {
    return cpu;
  }

  public double getRam() {
    return ram;
  }

  public Timestamp getTimestamp() {
    return timestamp;
  }

  public String toString() {
    return getClass().getName() + ": cpu: " + cpu + ", ram: " + ram + ", timestamp: " + timestamp;
  }
}
